<%-- 
    Document   : deleteFriend
    Created on : Nov 7, 2011, 4:09:38 PM
    Author     : northpole
--%>
<%@page import="java.util.ArrayList"%>
<%@page import="user.User" contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    </head>
    <body>

<%
String foo=request.getParameter("username");
User userInfo=(User)session.getAttribute("userInfo");
if(userInfo!=null && foo!=null)
userInfo.deleteFRiend(foo); 
out.print(foo+"<br/>"+userInfo);

   String redirectURL = "manageFriends.jsp";
    response.sendRedirect(redirectURL);
     
%>        
        
    </body>
</html>
